<?php
Yii::import('application.modules.users.models.User');
Yii::import('application.widgets.DAOTable');
$tbl_name = User::model()->tableName();

$command = Yii::app()->rdb->createCommand('SELECT * FROM '.$tbl_name.' WHERE status=:status');
$command->bindParam(':status',$_GET['st']);
$tbl = new DAOTable($command);
$tbl->query();
$event->data = (string) $tbl;
